const state = {
  loading: false
}

const getters = {
  getLoading: state => {
    return state.loading
  }
}

const mutations = {
  showLoading (state) {
    state.loading = true
  },
  hideLoading (state) {
    state.loading = false
  }
}

export default {
  state,
  getters,
  mutations
}
